home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Games Collection 1
/
software vault.zip
/
software vault
/
CDR10
/
SPX20.ZIP
/
SPX_INT.ZIP
/
SPX_SND.INT
< prev
next >
Wrap
Text File
|
1993-09-14
|
2KB
|
51 lines
Unit spx_snd;
{$X+,O+ }
{ SPX Library Version 2.0 Copyright 1993 Scott D. Ramsay }
{ NOTE: Do not use this unit with SPX_TIM.TPU }
Interface
Uses crt,dos,spx_ems,spx_fnc;
type
Psound = ^Tsound;
Tsound = object
sblk : pointer;
size,
sport : word;
sb_play : boolean;
constructor init(sndfile:string;prt:word;_sb:boolean);
function loadsnd(sndfile:string;prt:word;_sb:boolean):boolean; virtual;
function filesnd(var fil:file;bsize,prt:word;_sb:boolean):boolean; virtual;
procedure cleansnd; virtual;
procedure play(canstop:boolean); virtual;
procedure stop; virtual;
destructor done; virtual;
end;
PEmsSound = ^TEmsSound;
TEmsSound = object(Tsound)
EMSseg,handle : word;
EMSok : boolean;
constructor init(sndfile:string;prt:word;_sb:boolean);
function loadsnd(sndfile:string;prt:word;_sb:boolean):boolean; virtual;
procedure cleansnd; virtual;
procedure play(canstop:boolean); virtual;
destructor done; virtual;
end;
UserProc = procedure;
var
cs,playing : boolean;
f_clk,s_clk : array[0..3] of word;
rate,cntime : word;
f_userclk,
s_userclk : userproc;
function SBFindBase:word;
function SBReset(BaseAddr : word) : boolean;
procedure globalstop;
procedure setrate(cycles:word);
procedure wait(seconds,which:integer);